<extend name="../Public/model" />
<block name="title">添加{$TITLE}</block>
<block name="body">
    <form class="form form-horizontal form-validate" id="form-ajax-Form" method="post">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">菜单分类：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <span class="select-box wp30">
                    <select class="select" name="cate_id">
                        <volist name="navCates" id="info">
                            <option value="{$info.cate_id}" <eq name="info.cate_id" value="$cate_id">selected="selected"</eq>>{$info.cate_name}</option>
                        </volist>
                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">上级菜单：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <span class="select-box wp30">
                    <select class="select" name="parent_id">
                        <option value="0">顶级菜单</option>
                         <volist name="navs" id="info">
                             <option value="{$info.nav_id}" <eq name="info.nav_id" value="$parent_id">selected="selected"</eq>>{$info.nav_name}</option>
                         </volist>
                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>菜单名称：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" name="nav_name" datatype="*" nullmsg="菜单名称不能为空">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">菜单类型：：</label>
            <div class="formControls col-xs-8 col-sm-8 skin-minimal">
                <div class="radio-box">
                    <input name="status" type="radio" value="1" id="status-1" checked>
                    <label for="status-1">站外链接：</label>
                    <input type="text" style="width:300px;" placeholder="http://" class="input-text" name="nav_name">
                </div>
                <br><br>
                <div class="radio-box">
                    <input name="status" type="radio" value="0" id="status-2">
                    <label for="status-2">站内链接：</label>
                    <span class="select-box" style="width:300px;">
                    <select class="select" name="cate_id">
                        <option value="{:base64_encode('home')}">首页</option>
                        <volist name="navList" id="vo">
                            <optgroup label="{$vo.name}">
                                 <volist name="vo.tree" id="info">
                                    <option value="{$info.rule}">{$info.label}</option>
                                </volist>
                            </optgroup>
                        </volist>
                    </select>
                </span>
                </div>

            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>打开方式：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <span class="select-box wp30">
                    <select class="select" name="target">
                        <option value="">默认</option>
                        <option value="_blank">新窗口打开</option>
                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>排序：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" datatype="*1-3" nullmsg="排序不能为空" name="sort">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>状态：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <span class="select-box wp30">
                    <select name="status" class="select">
                        <option value="1" selected="">显示</option>
                        <option value="0">隐藏</option>
                    </select>
				</span>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</block>